package com.wxsh;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.io.FileUtils;

public class Translation {

	public static void main(String[] args) throws IOException {
		File input = new File("D:\\test\\StoryEnglishWords.txt");
		File input2 = new File("D:\\test\\translated.txt");
		List<String> lines = FileUtils.readLines(input, "UTF-8");
		List<String> lines2 = FileUtils.readLines(input2, "UTF-8");
		List<String> destLines = new ArrayList<String>();
		for (int i=0; i<lines.size(); i++) {
			destLines.add(lines.get(i));
			destLines.add(lines2.get(i));
		}

		FileUtils.writeLines(new File("D:\\test\\EnglishChinese.txt"), "UTF-8", destLines, false);
	}
}
